package com.artpri.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * GoodsComment entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "goods_comment", catalog = "jpw")
public class GoodsComment implements java.io.Serializable {

	// Fields

	private Integer gcommentId;
	private Integer goodsNum;
	private Integer gcommentRank;
	private String gcommentName;
	private String gcommentTime;
	private String gcommentContent;
	private Integer gcommentRNum;
	private Integer gcommentAnonymity;
	private Integer gcommentState;

	// Constructors

	/** default constructor */
	public GoodsComment() {
	}

	/** full constructor */
	public GoodsComment(Integer goodsNum, Integer gcommentRank,
			String gcommentName, String gcommentTime, String gcommentContent,
			Integer gcommentRNum, Integer gcommentAnonymity,
			Integer gcommentState) {
		this.goodsNum = goodsNum;
		this.gcommentRank = gcommentRank;
		this.gcommentName = gcommentName;
		this.gcommentTime = gcommentTime;
		this.gcommentContent = gcommentContent;
		this.gcommentRNum = gcommentRNum;
		this.gcommentAnonymity = gcommentAnonymity;
		this.gcommentState = gcommentState;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "gcomment_id", unique = true, nullable = false)
	public Integer getGcommentId() {
		return this.gcommentId;
	}

	public void setGcommentId(Integer gcommentId) {
		this.gcommentId = gcommentId;
	}

	@Column(name = "goods_num")
	public Integer getGoodsNum() {
		return this.goodsNum;
	}

	public void setGoodsNum(Integer goodsNum) {
		this.goodsNum = goodsNum;
	}

	@Column(name = "gcomment_rank")
	public Integer getGcommentRank() {
		return this.gcommentRank;
	}

	public void setGcommentRank(Integer gcommentRank) {
		this.gcommentRank = gcommentRank;
	}

	@Column(name = "gcomment_name", length = 60)
	public String getGcommentName() {
		return this.gcommentName;
	}

	public void setGcommentName(String gcommentName) {
		this.gcommentName = gcommentName;
	}

	@Column(name = "gcomment_time", length = 20)
	public String getGcommentTime() {
		return this.gcommentTime;
	}

	public void setGcommentTime(String gcommentTime) {
		this.gcommentTime = gcommentTime;
	}

	@Column(name = "gcomment_content", length = 200)
	public String getGcommentContent() {
		return this.gcommentContent;
	}

	public void setGcommentContent(String gcommentContent) {
		this.gcommentContent = gcommentContent;
	}

	@Column(name = "gcomment_r_num")
	public Integer getGcommentRNum() {
		return this.gcommentRNum;
	}

	public void setGcommentRNum(Integer gcommentRNum) {
		this.gcommentRNum = gcommentRNum;
	}

	@Column(name = "gcomment_anonymity")
	public Integer getGcommentAnonymity() {
		return this.gcommentAnonymity;
	}

	public void setGcommentAnonymity(Integer gcommentAnonymity) {
		this.gcommentAnonymity = gcommentAnonymity;
	}

	@Column(name = "gcomment_state")
	public Integer getGcommentState() {
		return this.gcommentState;
	}

	public void setGcommentState(Integer gcommentState) {
		this.gcommentState = gcommentState;
	}

}